package com.isoft.demo01.dao;



import com.isoft.demo01.entity.Manage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ManageDao {
    @Insert("insert into tb_manage(name,password,salt) values(#{name},#{pwd},#{salt})")
    public int add(@Param("name") String name, @Param("pwd") String password, @Param("salt") String salt);

    @Select("select * from tb_manage where name=#{name}")
    public Manage chackName(@Param("name") String name);

    @Select("select * from tb_manage where name=#{name} and password=#{password}")
    public Manage getByAccount(@Param("name") String name, @Param("password") String password);

}
